#define _CRT_SECURE_NO_WARNINGS 1
#include "List.h"

test1()
{
	LTNode* plist = LTInit();
	LTPushFront(plist, 1);
	LTPushFront(plist, 2);
	LTPushFront(plist, 3);
	LTPushFront(plist, 4);
	LTPushBack(plist, 2);
	Print(plist);

	LTPopFront(plist);
	//LTPopBack(plist);

	Print(plist);
}
test2()
{
	LTNode* plist = LTInit();
	LTPushFront(plist, 1);
	LTPushFront(plist, 2);
	LTPushFront(plist, 3);
	LTPushFront(plist, 4);
	LTPushBack(plist, 2);
	Print(plist);
	//int sz = LTSize(plist);
	//printf("%d", sz);
	LTNode* pos = LTFind(plist, 3);
	//LTInsert(pos, 10);
	LTErase(pos);
	Print(plist);
	LTDestory(plist);
}
int main()
{
	test2();
	return 0;
}